public class RejouerCommandes implements Commande {
	//----------------Arguments--------------------------------------------------------------------------
	
	private GardienCommandes gardienCommandes;
	
	//----------------Constructeur----------------------------------------------------------------------
	
	public RejouerCommandes(GardienCommandes g)
	{		
		this.gardienCommandes = g;
	}

	//----------------Methodes--------------------------------------------------------------------------
	

	public void execute()
	{		
		for (int i = 0; i < this.gardienCommandes.getNbCommandes(); i++)
		{		
			Commande comm = this.gardienCommandes.getCommandeNb(i);
			comm.execute();
		}
	}
}